package com.zhang.util;

/**
 * @author zhang
 * @time 2022/01/24 21:03:34
 */
public class RedisKeyUtils {
    private static final String SEPARTOR = ":";
    private static final String LOGIN_FAIL_TIMES_SUFFIX = "loginFailTimes";
    private static final String LOGIN_FAIL_FROZEN_SUFFIX = "forzen";
    private static final String LOGIN_validate = "validate";
    public static String loginFailKeyName(String username) {
        return username + SEPARTOR + LOGIN_FAIL_TIMES_SUFFIX;
    }

    public static String frozenUserKeyName(String username) {
        return username + SEPARTOR + LOGIN_FAIL_FROZEN_SUFFIX;
    }
    public static String validateKeyName(){
        return LOGIN_validate;
    }
}
